package com.strato.repository.monitor.v1_0_0;

import java.io.File;
import java.io.InputStream;
import java.util.Map;

public interface FileListener {
	
	String ADDED = "added";
	String CHANGED = "changed";
	String DELETED = "deleted";
	
    public void onStart(File monitoredfile);

    public void onStop(File notMonitoredFile);

    public void onAdd(String path,InputStream is);

    public void onChange(String path,InputStream is);

    public void onDelete(String path);
    
    public void onIntervalStart();
    
    public void onIntervalEnd(Map<String,String> eventsToFile);
}
